package org.openscheduler.modules.trigger;

import java.util.TimeZone;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.quartz.DateBuilder.IntervalUnit;

public class CalendarIntervalScheduleTriggerTemplate extends TriggerTemplate {
	
	private TimeZone timezone;
	private Boolean preserveHourOfDay;
	private Boolean skipDay;
	private Integer timeInterval;
	private IntervalUnit unit;

	public TimeZone getTimezone() {
		return timezone;
	}

	public void setTimezone(TimeZone timezone) {
		this.timezone = timezone;
	}

	public Boolean getPreserveHourOfDay() {
		return preserveHourOfDay;
	}

	public void setPreserveHourOfDay(Boolean preserveHourOfDay) {
		this.preserveHourOfDay = preserveHourOfDay;
	}

	public Boolean getSkipDay() {
		return skipDay;
	}

	public void setSkipDay(Boolean skipDay) {
		this.skipDay = skipDay;
	}

	public Integer getTimeInterval() {
		return timeInterval;
	}

	public void setTimeInterval(Integer timeInterval) {
		this.timeInterval = timeInterval;
	}

	public IntervalUnit getUnit() {
		return unit;
	}

	public void setUnit(IntervalUnit unit) {
		this.unit = unit;
	}
	
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
	}

}
